package com.hz.house.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hz.house.bean.entity.HotQaBean;
import com.hz.house.bean.entity.HotQaCommentBean;
import com.hz.house.bean.entity.HotQaCommentReplyBean;
import com.hz.house.bean.entity.OfficialAccountbean;
import com.hz.house.bean.vo.SimpleBean;

public interface HotQaMapper {

	List<HotQaBean>  getBbsHomeHotQaThree();
	
	HotQaBean getHotQaDetail(@Param("hotQaId")int hotQaId);
	
	int bactchUpdateHotQaVisit(List<SimpleBean> sbs);
	
	List<HotQaBean>  getHotQaList(@Param("page")int page,@Param("size")int size);
	
	List<HotQaBean>  getMyFoucsHotQaList(@Param("page")int page,@Param("size")int size,
			@Param("customerId")int customerId);
	
	int getHotQaTotal();
	int getMyFoucsHotQaTotal(@Param("customerId")int customerId);
	
	List<OfficialAccountbean> getAllOfficialAccount();
	
	int addComment(HotQaCommentBean cb);
	
	int addHotQaCommentPraise(@Param("hotqaCommentId")int hotqaCommentId,@Param("customerId")int customerId);
	
	int delHotQaCommentPraise(@Param("hotqaCommentId")int hotqaCommentId,@Param("customerId")int customerId);
	
	int addHotQaCommentReply(HotQaCommentReplyBean r);
	
	List<HotQaCommentBean> getHotQaCommentList(Map<String,Object> m);
	Integer getHotQaCommentTotal(Map<String,Object> m);
	
	List<HotQaCommentReplyBean> getCommentReplys(List<HotQaCommentBean> cs);
	
	List<Integer> getCurrentUserPraiseRecord(@Param("customerId")int customerId);
	
	int addFocusHotQa(@Param("customerId")int customerId,@Param("hotqaId")int hotqaId);
	
	int delFoucsHotQa(@Param("customerId")int customerId,@Param("hotqaId")int hotqaId);
	
	Integer isFoucsHotQa(@Param("customerId")int customerId,@Param("hotqaId")int hotqaId);
}
